<php>if($user){</php>
<php>$notifyNum = getUserNewNotify($mid)</php>
$('.userstatus').html('{:L('base_welcome')}<a href="{:U('home/User/index','uid='.$mid)}">{$mid|getUserName}</a><php>if($notifyNum>0){</php><a class="ml10" href="{:U('home/Message/index',array('type'=>'notify'))}">{:L('base_notify')}<span class="qive"></span>({$notifyNum})</a><php>}</php> &nbsp; <a href="{:U('home/Public/logout')}">{:L('base_exit')}</a> | ');
<php>}</php>
{* 多风格切换 *}
<php> $themesel = cookie('theme')?cookie('theme'):'blue'; </php>
<php> if($themesel != 'blue'){ </php>
$('#logo_image').attr('src',"__PUBLIC__/themes/blue/{$themesel}/s_logo.jpg");
$('#themepoint').attr('href',"__PUBLIC__/themes/blue/{$themesel}/theme.css");
$.each($("#themelist a"),function(i,n){
	$(this).removeClass('nb');
});
<php>}</php>
$("#themelist .ctb_{$themesel}").addClass('nb');